ASP:ListBox | Multi Select | Keep selected values when selecting a new one?

This is going to sound like a snide answer, but I don't mean it that way. I just like to look for the simple solutions rather than the complicated onces The easiest way to get a control to have the behavior you want is to use a control that has the behavior that you want, rather than modifying the behavior of an existing control That said, if you want a list of items where a user can select a bunch of items off the list, and don't want to have to rely on them holding control, you're using the wrong tool for the job Use a CheckBoxList instead of a ListBox. If you want it to be scrollable, then set it in a div of a specific height, and set the style of the div to "overflow: scroll.

This is going to sound like a snide answer, but I don't mean it that way. I just like to look for the simple solutions rather than the complicated onces. The easiest way to get a control to have the behavior you want is to use a control that has the behavior that you want, rather than modifying the behavior of an existing control.

That said, if you want a list of items where a user can select a bunch of items off the list, and don't want to have to rely on them holding control, you're using the wrong tool for the job. Use a CheckBoxList instead of a ListBox. If you want it to be scrollable, then set it in a div of a specific height, and set the style of the div to "overflow: scroll".

Without javascript – Chicago Nov 5 '09 at 15:33.

If you still want to use a ListBox you should use javascript and for each click event fired, you should check if the clicked element is selected/unselected and act accordingly. It's a little bit tricky but at least it is a solution for your problem.

1 I'm voting this up because it should work, and there may be reasons for using a ListBox as opposed to a CheckBoxList. Can you provide some sample javascript code? – David Stratton Nov 5 '09 at 15:19.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions